Optimal. Leaf size=136 \[ -\frac {3}{8} \sqrt {b} e^{-a} \sqrt {\pi } \text {Erf}\left (\sqrt {b} x\right )+\frac {1}{8} \sqrt {b} e^{-3 a} \sqrt {3 \pi } \text {Erf}\left (\sqrt {3} \sqrt {b} x\right )-\frac {3}{8} \sqrt {b} e^a \sqrt {\pi } \text {Erfi}\left (\sqrt {b} x\right )+\frac {1}{8} \sqrt {b} e^{3 a} \sqrt {3 \pi } \text {Erfi}\left (\sqrt {3} \sqrt {b} x\right )-\frac {\sinh ^3\left (a+b x^2\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {5438, 5737,
5407, 2235, 2236} \begin {gather*} -\frac {3}{8} \sqrt {\pi } e^{-a} \sqrt {b} \text {Erf}\left (\sqrt {b} x\right )+\frac {1}{8} \sqrt {3 \pi } e^{-3 a} \sqrt {b} \text {Erf}\left (\sqrt {3} \sqrt {b} x\right )-\frac {3}{8} \sqrt {\pi } e^a \sqrt {b} \text {Erfi}\left (\sqrt {b} x\right )+\frac {1}{8} \sqrt {3 \pi } e^{3 a} \sqrt {b} \text {Erfi}\left (\sqrt {3} \sqrt {b} x\right )-\frac {\sinh ^3\left (a+b x^2\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2236
Rule 5407
Rule 5438
Rule 5737
Rubi steps
\begin {align*} \int \frac {\sinh ^3\left (a+b x^2\right )}{x^2} \, dx &=-\frac {\sinh ^3\left (a+b x^2\right )}{x}+(6 b) \int \cosh \left (a+b x^2\right ) \sinh ^2\left (a+b x^2\right ) \, dx\\ &=-\frac {\sinh ^3\left (a+b x^2\right )}{x}+(6 b) \int \left (-\frac {1}{4} \cosh \left (a+b x^2\right )+\frac {1}{4} \cosh \left (3 a+3 b x^2\right )\right ) \, dx\\ &=-\frac {\sinh ^3\left (a+b x^2\right )}{x}-\frac {1}{2} (3 b) \int \cosh \left (a+b x^2\right ) \, dx+\frac {1}{2} (3 b) \int \cosh \left (3 a+3 b x^2\right ) \, dx\\ &=-\frac {\sinh ^3\left (a+b x^2\right )}{x}+\frac {1}{4} (3 b) \int e^{-3 a-3 b x^2} \, dx-\frac {1}{4} (3 b) \int e^{-a-b x^2} \, dx-\frac {1}{4} (3 b) \int e^{a+b x^2} \, dx+\frac {1}{4} (3 b) \int e^{3 a+3 b x^2} \, dx\\ &=-\frac {3}{8} \sqrt {b} e^{-a} \sqrt {\pi } \text {erf}\left (\sqrt {b} x\right )+\frac {1}{8} \sqrt {b} e^{-3 a} \sqrt {3 \pi } \text {erf}\left (\sqrt {3} \sqrt {b} x\right )-\frac {3}{8} \sqrt {b} e^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x\right )+\frac {1}{8} \sqrt {b} e^{3 a} \sqrt {3 \pi } \text {erfi}\left (\sqrt {3} \sqrt {b} x\right )-\frac {\sinh ^3\left (a+b x^2\right )}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 204, normalized size = 1.50 \begin {gather*} \frac {-3 \sqrt {b} \sqrt {\pi } x \cosh (a) \text {Erfi}\left (\sqrt {b} x\right )+\sqrt {b} \sqrt {3 \pi } x \cosh (3 a) \text {Erfi}\left (\sqrt {3} \sqrt {b} x\right )-3 \sqrt {b} \sqrt {\pi } x \text {Erfi}\left (\sqrt {b} x\right ) \sinh (a)+3 \sqrt {b} \sqrt {\pi } x \text {Erf}\left (\sqrt {b} x\right ) (-\cosh (a)+\sinh (a))+\sqrt {b} \sqrt {3 \pi } x \text {Erf}\left (\sqrt {3} \sqrt {b} x\right ) (\cosh (3 a)-\sinh (3 a))+\sqrt {b} \sqrt {3 \pi } x \text {Erfi}\left (\sqrt {3} \sqrt {b} x\right ) \sinh (3 a)+6 \sinh \left (a+b x^2\right )-2 \sinh \left (3 \left (a+b x^2\right )\right )}{8 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.25, size = 149, normalized size = 1.10
method | result | size |
risch | \(\frac {{\mathrm e}^{-3 a} {\mathrm e}^{-3 x^{2} b}}{8 x}+\frac {{\mathrm e}^{-3 a} \sqrt {b}\, \sqrt {\pi }\, \sqrt {3}\, \erf \left (x \sqrt {3}\, \sqrt {b}\right )}{8}-\frac {3 \,{\mathrm e}^{-a} {\mathrm e}^{-x^{2} b}}{8 x}-\frac {3 \,{\mathrm e}^{-a} \sqrt {b}\, \sqrt {\pi }\, \erf \left (x \sqrt {b}\right )}{8}+\frac {3 \,{\mathrm e}^{a} {\mathrm e}^{x^{2} b}}{8 x}-\frac {3 \,{\mathrm e}^{a} b \sqrt {\pi }\, \erf \left (\sqrt {-b}\, x \right )}{8 \sqrt {-b}}-\frac {{\mathrm e}^{3 a} {\mathrm e}^{3 x^{2} b}}{8 x}+\frac {3 \,{\mathrm e}^{3 a} b \sqrt {\pi }\, \erf \left (\sqrt {-3 b}\, x \right )}{8 \sqrt {-3 b}}\) | \(149\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 102, normalized size = 0.75 \begin {gather*} \frac {\sqrt {3} \sqrt {b x^{2}} e^{\left (-3 \, a\right )} \Gamma \left (-\frac {1}{2}, 3 \, b x^{2}\right )}{16 \, x} - \frac {\sqrt {3} \sqrt {-b x^{2}} e^{\left (3 \, a\right )} \Gamma \left (-\frac {1}{2}, -3 \, b x^{2}\right )}{16 \, x} - \frac {3 \, \sqrt {b x^{2}} e^{\left (-a\right )} \Gamma \left (-\frac {1}{2}, b x^{2}\right )}{16 \, x} + \frac {3 \, \sqrt {-b x^{2}} e^{a} \Gamma \left (-\frac {1}{2}, -b x^{2}\right )}{16 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 892 vs.
\(2 (98) = 196\).
time = 0.53, size = 892, normalized size = 6.56 \begin {gather*} -\frac {\cosh \left (b x^{2} + a\right )^{6} + 6 \, \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right )^{5} + \sinh \left (b x^{2} + a\right )^{6} + 3 \, {\left (5 \, \cosh \left (b x^{2} + a\right )^{2} - 1\right )} \sinh \left (b x^{2} + a\right )^{4} - 3 \, \cosh \left (b x^{2} + a\right )^{4} + 4 \, {\left (5 \, \cosh \left (b x^{2} + a\right )^{3} - 3 \, \cosh \left (b x^{2} + a\right )\right )} \sinh \left (b x^{2} + a\right )^{3} + \sqrt {3} \sqrt {\pi } {\left (x \cosh \left (b x^{2} + a\right )^{3} \cosh \left (3 \, a\right ) + x \cosh \left (b x^{2} + a\right )^{3} \sinh \left (3 \, a\right ) + {\left (x \cosh \left (3 \, a\right ) + x \sinh \left (3 \, a\right )\right )} \sinh \left (b x^{2} + a\right )^{3} + 3 \, {\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (3 \, a\right ) + x \cosh \left (b x^{2} + a\right ) \sinh \left (3 \, a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} + 3 \, {\left (x \cosh \left (b x^{2} + a\right )^{2} \cosh \left (3 \, a\right ) + x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (3 \, a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt {-b} \operatorname {erf}\left (\sqrt {3} \sqrt {-b} x\right ) - \sqrt {3} \sqrt {\pi } {\left (x \cosh \left (b x^{2} + a\right )^{3} \cosh \left (3 \, a\right ) - x \cosh \left (b x^{2} + a\right )^{3} \sinh \left (3 \, a\right ) + {\left (x \cosh \left (3 \, a\right ) - x \sinh \left (3 \, a\right )\right )} \sinh \left (b x^{2} + a\right )^{3} + 3 \, {\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (3 \, a\right ) - x \cosh \left (b x^{2} + a\right ) \sinh \left (3 \, a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} + 3 \, {\left (x \cosh \left (b x^{2} + a\right )^{2} \cosh \left (3 \, a\right ) - x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (3 \, a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt {b} \operatorname {erf}\left (\sqrt {3} \sqrt {b} x\right ) - 3 \, \sqrt {\pi } {\left (x \cosh \left (b x^{2} + a\right )^{3} \cosh \left (a\right ) + x \cosh \left (b x^{2} + a\right )^{3} \sinh \left (a\right ) + {\left (x \cosh \left (a\right ) + x \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )^{3} + 3 \, {\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) + x \cosh \left (b x^{2} + a\right ) \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} + 3 \, {\left (x \cosh \left (b x^{2} + a\right )^{2} \cosh \left (a\right ) + x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt {-b} \operatorname {erf}\left (\sqrt {-b} x\right ) + 3 \, \sqrt {\pi } {\left (x \cosh \left (b x^{2} + a\right )^{3} \cosh \left (a\right ) - x \cosh \left (b x^{2} + a\right )^{3} \sinh \left (a\right ) + {\left (x \cosh \left (a\right ) - x \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )^{3} + 3 \, {\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) - x \cosh \left (b x^{2} + a\right ) \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} + 3 \, {\left (x \cosh \left (b x^{2} + a\right )^{2} \cosh \left (a\right ) - x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt {b} \operatorname {erf}\left (\sqrt {b} x\right ) + 3 \, {\left (5 \, \cosh \left (b x^{2} + a\right )^{4} - 6 \, \cosh \left (b x^{2} + a\right )^{2} + 1\right )} \sinh \left (b x^{2} + a\right )^{2} + 3 \, \cosh \left (b x^{2} + a\right )^{2} + 6 \, {\left (\cosh \left (b x^{2} + a\right )^{5} - 2 \, \cosh \left (b x^{2} + a\right )^{3} + \cosh \left (b x^{2} + a\right )\right )} \sinh \left (b x^{2} + a\right ) - 1}{8 \, {\left (x \cosh \left (b x^{2} + a\right )^{3} + 3 \, x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (b x^{2} + a\right ) + 3 \, x \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right )^{2} + x \sinh \left (b x^{2} + a\right )^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sinh ^{3}{\left (a + b x^{2} \right )}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {sinh}\left (b\,x^2+a\right )}^3}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________